<table width="95%" border="1" class="login" cellpadding="5" cellspacing="0">
    <tr>
        <th></th>
        <th>Track</th>
        <th>Revisor</th>
        <th>País</th>
        <th>E-mail</th>
        <th>Institución</th>
        <th>Cargo</th>
        <!--<th></th>-->
        <!--<th>Papers</th>-->
    </tr>
    <?php
    
    $filas = $this->vars['data_revisor']['list_revisor'];
    $filas_pais = $this->vars['data_pais']['list_pais'];
    $html = '';

    if(!$filas) {
        $html = '<tr><td colspan="8" align="center"><strong>No se encontraron registros</strong></td></tr>';
    }
    else {
        foreach($filas as $fila) {
            $html .= '<tr>';
            $html .= "<td align='center'><input type='radio' name='radioRevisor' value='".utf8_encode($fila->getIdRevisor())."'/></center></td>";
            $html .= "<td align='center'>T".utf8_encode($fila->getIdTrack())."</center></td>";
            $html .= "<td align='justify'>".utf8_encode($fila->getNombre())." ".utf8_encode($fila->getApellido())."</td>";

            foreach($filas_pais as $fila_pais) {
                if($fila->getIdPais()==$fila_pais->getIdPais()) {
                    $html .= "<td align='center'>".utf8_encode($fila_pais->getNombre())."</td>";
                }
            }

            $html .= "<td align='justify'><a href='mailto:".utf8_encode($fila->getEmail1())."'>".utf8_encode($fila->getEmail1())."</a></td>";
            //$html .= "<td>".utf8_encode($fila->getInstitucion())."</td>";
            $html .= "<td align='justify'>".$fila->getInstitucion()."</td>";
            $html .= "<td align='justify'>".$fila->getCargo()."</td>";
            //$html .= "<td align='justify'><a href='index.php?controller=revisor&action=detalle&".$fila->getIdRevisor()."'>Detalle</a></td>";
            //$html .= "<td></td>";
            $html .= '</tr>';
        }
    }
    echo($html);
    ?>
</table>